Optimal. Leaf size=74 \[ \frac {d^3 x}{b^2}+\frac {(b c-a d)^3}{a b^3 (a+b x)}+\frac {c^3 \log (x)}{a^2}-\frac {(b c-a d)^2 (b c+2 a d) \log (a+b x)}{a^2 b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {90}
\begin {gather*} -\frac {(b c-a d)^2 (2 a d+b c) \log (a+b x)}{a^2 b^3}+\frac {c^3 \log (x)}{a^2}+\frac {(b c-a d)^3}{a b^3 (a+b x)}+\frac {d^3 x}{b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 90
Rubi steps
\begin {align*} \int \frac {(c+d x)^3}{x (a+b x)^2} \, dx &=\int \left (\frac {d^3}{b^2}+\frac {c^3}{a^2 x}+\frac {(-b c+a d)^3}{a b^2 (a+b x)^2}-\frac {(-b c+a d)^2 (b c+2 a d)}{a^2 b^2 (a+b x)}\right ) \, dx\\ &=\frac {d^3 x}{b^2}+\frac {(b c-a d)^3}{a b^3 (a+b x)}+\frac {c^3 \log (x)}{a^2}-\frac {(b c-a d)^2 (b c+2 a d) \log (a+b x)}{a^2 b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 74, normalized size = 1.00 \begin {gather*} \frac {d^3 x}{b^2}+\frac {(b c-a d)^3}{a b^3 (a+b x)}+\frac {c^3 \log (x)}{a^2}-\frac {(b c-a d)^2 (b c+2 a d) \log (a+b x)}{a^2 b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 110, normalized size = 1.49
method | result | size |
default | \(\frac {d^{3} x}{b^{2}}+\frac {\left (-2 a^{3} d^{3}+3 a^{2} b c \,d^{2}-b^{3} c^{3}\right ) \ln \left (b x +a \right )}{b^{3} a^{2}}-\frac {a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}}{b^{3} a \left (b x +a \right )}+\frac {c^{3} \ln \left (x \right )}{a^{2}}\) | \(110\) |
norman | \(\frac {\frac {d^{3} x^{2}}{b}+\frac {\left (2 a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) x}{b^{2} a^{2}}}{b x +a}+\frac {c^{3} \ln \left (x \right )}{a^{2}}-\frac {\left (2 a^{3} d^{3}-3 a^{2} b c \,d^{2}+b^{3} c^{3}\right ) \ln \left (b x +a \right )}{a^{2} b^{3}}\) | \(115\) |
risch | \(\frac {d^{3} x}{b^{2}}-\frac {a^{2} d^{3}}{b^{3} \left (b x +a \right )}+\frac {3 a c \,d^{2}}{b^{2} \left (b x +a \right )}-\frac {3 c^{2} d}{b \left (b x +a \right )}+\frac {c^{3}}{a \left (b x +a \right )}-\frac {2 a \ln \left (b x +a \right ) d^{3}}{b^{3}}+\frac {3 \ln \left (b x +a \right ) c \,d^{2}}{b^{2}}-\frac {\ln \left (b x +a \right ) c^{3}}{a^{2}}+\frac {c^{3} \ln \left (-x \right )}{a^{2}}\) | \(130\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 111, normalized size = 1.50 \begin {gather*} \frac {d^{3} x}{b^{2}} + \frac {c^{3} \log \left (x\right )}{a^{2}} + \frac {b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}}{a b^{4} x + a^{2} b^{3}} - \frac {{\left (b^{3} c^{3} - 3 \, a^{2} b c d^{2} + 2 \, a^{3} d^{3}\right )} \log \left (b x + a\right )}{a^{2} b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 166 vs.
\(2 (74) = 148\).
time = 0.84, size = 166, normalized size = 2.24 \begin {gather*} \frac {a^{2} b^{2} d^{3} x^{2} + a^{3} b d^{3} x + a b^{3} c^{3} - 3 \, a^{2} b^{2} c^{2} d + 3 \, a^{3} b c d^{2} - a^{4} d^{3} - {\left (a b^{3} c^{3} - 3 \, a^{3} b c d^{2} + 2 \, a^{4} d^{3} + {\left (b^{4} c^{3} - 3 \, a^{2} b^{2} c d^{2} + 2 \, a^{3} b d^{3}\right )} x\right )} \log \left (b x + a\right ) + {\left (b^{4} c^{3} x + a b^{3} c^{3}\right )} \log \left (x\right )}{a^{2} b^{4} x + a^{3} b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 153 vs.
\(2 (66) = 132\).
time = 0.80, size = 153, normalized size = 2.07 \begin {gather*} \frac {- a^{3} d^{3} + 3 a^{2} b c d^{2} - 3 a b^{2} c^{2} d + b^{3} c^{3}}{a^{2} b^{3} + a b^{4} x} + \frac {d^{3} x}{b^{2}} + \frac {c^{3} \log {\left (x \right )}}{a^{2}} - \frac {\left (a d - b c\right )^{2} \cdot \left (2 a d + b c\right ) \log {\left (x + \frac {a b^{2} c^{3} + \frac {a \left (a d - b c\right )^{2} \cdot \left (2 a d + b c\right )}{b}}{2 a^{3} d^{3} - 3 a^{2} b c d^{2} + 2 b^{3} c^{3}} \right )}}{a^{2} b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 153 vs.
\(2 (74) = 148\).
time = 1.25, size = 153, normalized size = 2.07 \begin {gather*} b {\left (\frac {c^{3} \log \left ({\left | -\frac {a}{b x + a} + 1 \right |}\right )}{a^{2} b} + \frac {{\left (b x + a\right )} d^{3}}{b^{4}} - \frac {{\left (3 \, b c d^{2} - 2 \, a d^{3}\right )} \log \left (\frac {{\left | b x + a \right |}}{{\left (b x + a\right )}^{2} {\left | b \right |}}\right )}{b^{4}} + \frac {\frac {b^{5} c^{3}}{b x + a} - \frac {3 \, a b^{4} c^{2} d}{b x + a} + \frac {3 \, a^{2} b^{3} c d^{2}}{b x + a} - \frac {a^{3} b^{2} d^{3}}{b x + a}}{a b^{6}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.42, size = 109, normalized size = 1.47 \begin {gather*} \frac {d^3\,x}{b^2}-\ln \left (a+b\,x\right )\,\left (\frac {c^3}{a^2}+\frac {2\,a\,d^3}{b^3}-\frac {3\,c\,d^2}{b^2}\right )+\frac {c^3\,\ln \left (x\right )}{a^2}-\frac {a^3\,d^3-3\,a^2\,b\,c\,d^2+3\,a\,b^2\,c^2\,d-b^3\,c^3}{a\,b\,\left (x\,b^3+a\,b^2\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________